import request from './request'

// 用户登录
export const userAccountLogin = (account, password) =>
  request({ url: '/login', method: 'post', data: { account, password } })

export const userMobileLogin = (mobile, code) => request({ url: '/login/code', method: 'post', data: { mobile, code } })

// 验证码
export const userMobileLoginMsg = (mobile) => request({ url: '/login/code', method: 'get', params: { mobile } })
